package actionHandlers;

import javax.swing.event.InternalFrameEvent;
import javax.swing.event.InternalFrameListener;

//import palette.CanvasManager;
//import palette.CanvasWindow;


public class SelectedCanvasListener implements InternalFrameListener{

	@Override
	public void internalFrameActivated(InternalFrameEvent e) {
		// Uncomment the next line to see when this event is being handled.
		//System.out.println("internalFrameActivated event occurred");
		//((CanvasWindow) (CanvasManager.getInst().getSelectedFrame())).getShapeExplorer().setShapeTree(((CanvasWindow) (CanvasManager.getInst().getSelectedFrame())).getShapeTree());
		//((CanvasWindow) (CanvasManager.getInst().getSelectedFrame())).getShapeProperties().setShapeTable(((CanvasWindow) (CanvasManager.getInst().getSelectedFrame())).getShapeTable());
		
	}

	@Override
	public void internalFrameClosed(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void internalFrameClosing(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void internalFrameDeactivated(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void internalFrameDeiconified(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void internalFrameIconified(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void internalFrameOpened(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}


}
